widget: Queue resize on parent on show/hide
authorBenjamin Otte <otte@redhat.com>
Thu, 29 Oct 2015 00:03:09 +0000 (01:03 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 29 Oct 2015 00:03:09 +0000 (01:03 +0100)
commit4483636016ec9e30ee1247b62851a66690967637
treeff23f379858af618cfc5905573e624b0f9fe061b
parentcd20ae8fe118f08a48075f1b00f415d63a248395
widget: Queue resize on parent on show/hide

When gtk_widget_show() or gtk_widget_hide() is called, don't queue a
resize on the widget itself but on the parent.

The widget itself may already be marked as in need of a resize and
the call would be optimized out and never reach the parent.
The parent size will change though because a child widget just changed
its visibility.

Fixes a bunch of issues with menus appearing black, toolbas not hiding
in widget-factory and also various reftests.
gtk/gtkwidget.c